package org.flower.bean;

import java.util.ArrayList;
import java.util.List;

public class OrderDetails {
    private Integer id;

    private Integer comdetailsid;

    private Integer orderid;

    private Integer num;

    private double totalPrice;

    public double getSumPrice() {
        return sumPrice;
    }

    public void setSumPrice(double sumPrice) {
        this.sumPrice = sumPrice;
    }

    private double sumPrice;



    private CommodityDetails commodityDetails;

    @Override
    public String toString() {
        return "OrderDetails{" +
                "id=" + id +
                ", comdetailsid=" + comdetailsid +
                ", orderid=" + orderid +
                ", num=" + num +
                ", totalPrice=" + totalPrice +
                ", commodityDetails=" + commodityDetails +
                '}';
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public CommodityDetails getCommodityDetails() {
        return commodityDetails;
    }

    public void setCommodityDetails(CommodityDetails commodityDetails) {
        this.commodityDetails = commodityDetails;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(double totalPrice) {
        this.totalPrice = totalPrice;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getComdetailsid() {
        return comdetailsid;
    }

    public void setComdetailsid(Integer comdetailsid) {
        this.comdetailsid = comdetailsid;
    }

    public Integer getOrderid() {
        return orderid;
    }

    public void setOrderid(Integer orderid) {
        this.orderid = orderid;
    }

    public OrderDetails() {
    }

    public OrderDetails(Integer id, Integer comdetailsid, Integer orderid, Integer num, double totalPrice) {
        this.id = id;
        this.comdetailsid = comdetailsid;
        this.orderid = orderid;
        this.num = num;
        this.totalPrice = totalPrice;
    }

}